<%@ page contentType="text/html; charset=utf-8" pageEncoding="utf-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE html>
<html>
    <head>
        <title>Accounting Records</title>
        <link rel="stylesheet" href="<c:url value="/default.css"/>" type="text/css">
    </head>
    <body>
        <h1>Správa platieb a faktúr SZČO</h1>
        <div id="payments">
            <h3>Platby</h3>
            <span class="button" ><a href="<c:url value="/AddPayment"/>">Pridať platbu</a></span>
            <span class="button"><a href="<c:url value="/EditPayment"/>">Upraviť platbu</a></span>
            <span class="button"><a href="<c:url value="/RemovePayment"/>">Zmazať platbu</a></span><br />
            <span>Vypísať platby za obdobie:</span> 
            <form action="<c:url value="/ShowPayments"/>" method="post">
                <input type="text" name="fromDate" value="01/01/1970" pattern="[0-9]{2}/[0-9]{2}/[0-9]{4}" title="dd/mm/rrrr" required="required" />
                <input type="text" name="toDate" value="21/12/2012" pattern="[0-9]{2}/[0-9]{2}/[0-9]{4}" title="dd/mm/rrrr" required="required" />
                <input type="Submit" value="Vyhladať" name="submit" />
            </form>
            <br/>
        </div>
        <div id="invoices">
            <h3>Faktúry</h3>
            <span class="button"><a href="<c:url value="/AddInvoice"/>">Pridať faktúru</a></span>
            <span class="button"><a href="<c:url value="/EditInvoice"/>">Upraviť faktúru</a></span>
            <span class="button"><a href="<c:url value="/RemoveInvoice"/>">Zmazať faktúru</a></span><br />
            <span>
                Vypísať faktúry za obdobie:</span> <form action="<c:url value="/ShowInvoices"/>" method="post">
                <input type="text" name="fromDate" value="01/01/1970" pattern="[0-9]{2}/[0-9]{2}/[0-9]{4}" title="dd/mm/rrrr" required="required"/>
                <input type="text" name="toDate" value="21/12/2012" pattern="[0-9]{2}/[0-9]{2}/[0-9]{4}" title="dd/mm/rrrr" required="required"/>
                <input type="Submit" value="Vyhladať" name="submit" />
            </form>
            <br/>
        </div>
        <div id="tax">
            <span class="button"><a href="<c:url value="/PrepareTax"/>">Pripraviť daňové priznanie</a></span><br />
        </div>
    </body>
</html>
